package test.noah.chery.service;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import test.noah.chery.dao.CountryCityDao;
import test.noah.chery.entity.City;
import test.noah.chery.entity.Country;
import test.noah.chery.entity.Countrylanguage;

@Service
public class CountryCityService {
	
	private final static Logger log= Logger.getLogger(CountryCityService.class);
	
	@Autowired(required=false)
	private CountryCityDao countrycitydao;
	
	public List<Country> selectByCountry(Country country) {
		return countrycitydao.selectByCountry(country);
	}

	public List<City> selectByCity(City city) {
		return countrycitydao.selectByCity(city);
	}
	
	public List<Countrylanguage> selectByCountrylanguage(Countrylanguage language){
		return countrycitydao.selectByCountrylanguage(language);
	}

}
